package flexUnitTests
{
import flexunit.framework.TestCase;

import org.cestum.as3.collections.TreeMap;

public class TreeMapTest extends TestCase
{
	// please note that all test methods should start with 'test' and should be public
	
	public function TreeMapTest(methodName:String=null)
	{
		//TODO: implement function
		super(methodName);
	}
	
	//This method will be called before every test function
	override public function setUp():void
	{
		//TODO: implement function
		super.setUp();
	}
	
	//This method will be called after every test function
	override public function tearDown():void
	{
		//TODO: implement function
		super.tearDown();
	}
	
	
	public function testTreeMap():void
	{
		var array:TreeMap = new TreeMap();
		array.addItem("abc","abcValue");
		array.addItem("zyx","zyxValue");
		array.addItem("def","defValue");
		var size1:int = array.keys.length;
		for(var i:int=0; i< size1; i++) {
			var key:String= array.keys[i];
			trace(key);
		}
	}
	
	public function testTreeMapValues():void
	{
		var array:TreeMap = new TreeMap();
		array.addItem("abc","abcValue");
		array.addItem("zyx","zyxValue");
		array.addItem("def","defValue");
		var size1:int = array.keys.length;
		for(var i:int=0; i< size1; i++) {
			var value:String= array.values[i];
			trace(value);
		}
	}
	
}
}